//
//  BSNetManager.m
//  sister
//
//  Created by 周冰烽 on 2017/2/14.
//  Copyright © 2017年 周冰烽. All rights reserved.
//
#import "BSNetManager.h"
#define urlString @"http://api.budejie.com/api/api_open.php"
@implementation BSNetManager
+(id)recommendCategoryDataWithA:(NSString *)a c:(NSString *)c completionHandler:(void (^)(BSRecommendCategory *, NSError *))completionHandler{
    NSDictionary *parameters = @{@"a":a,@"c":c};
    return [self GET:urlString parameters:parameters progress:nil completionHandler:^(id responseObj, NSError *error) {
        completionHandler([BSRecommendCategory parseJson:responseObj],error);
    }];
}
+(id)ByLeftUserListWithA:(NSString *)a c:(NSString *)c CategoryID:(NSInteger)categoryID completionHandler:(void (^)(BSCategoryUserListModel *, NSError *))completionHandler{
    NSDictionary *parameters = @{@"a":a,@"c":c,@"category_id":@(categoryID)};
    return [self GET:urlString parameters:parameters progress:nil completionHandler:^(id responseObj, NSError *error) {
        completionHandler([BSCategoryUserListModel parseJson:responseObj],error);
    }];
}
+(id)recommendDataWithA:(NSString *)a c:(NSString *)c completionHandler:(void(^)(BSRecommendModel *,NSError *))completionHandler{
    NSDictionary *parameters = @{@"a":a,@"c":c};
    return [self GET:urlString parameters:parameters progress:nil completionHandler:^(id responseObj, NSError *error) {
        completionHandler([BSRecommendModel parseJson:responseObj],error);
    }];
}
@end
